<?php
include_once "../model/resume.php"; // 调用设置的Session
include_once "main.php";

if (isset($_POST["name"]) && isset($_POST["htmlstruct"]) && isset($_SESSION["username"])) {
    $username = $_SESSION["username"];
    $name = $_POST["name"];
    $htmlstruct = $_POST["htmlstruct"];
    echo saveResume($username,$name, $htmlstruct);
} else {
    echo 0;
}
